﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Tos2Google
{
    public partial class AutoLoginForm : Form
    {
        public AutoLoginForm(bool loadingConfXmlWasSuccess)
        {
            InitializeComponent();
            if (!loadingConfXmlWasSuccess)
                autoAdvancer1.Disable();
        }

        private void autoAdvancer1_Go()
        {
            btnOK_Click(null, null);
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            autoAdvancer1.Disable();

            AutoLogin.Save();

            DialogResult = DialogResult.OK;
        }

        private void btnAutoConfigSetup_Click(object sender, EventArgs e)
        {
            autoAdvancer1.Disable();
            AutoLogin.Edit();
        }
    }
}
